﻿using Coldairarrow.Entity.Goods;
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Coldairarrow.Entity.Home;

namespace Coldairarrow.Entity.DTO
{
    
    public class BTB_GoodsTypeDto
    {
        public String id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建者id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public String TypeName { get; set; }

        /// <summary>
        /// 父级id
        /// </summary>
        public String Parent { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public String Icon { get; set; }

        /// <summary>
        /// 品牌id
        /// </summary>
        public string Supplierid { get; set; }
        /// <summary>
        /// 品牌id
        /// </summary>
        public string GoodsTypeId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 销量
        /// </summary>
        public int SaleCount { get; set; }

        public bool? IsHot { get; set; }

        public bool? Preferential { get; set; }

        public bool? IsSpecial { get; set; }

        /// <summary>
        /// 起始价格
        /// </summary>
        [NotMapped]
        public decimal? Startprice { get; set; }
        /// <summary>
        /// 结束价格
        /// </summary>
        [NotMapped]
        public decimal? Endprice { get; set; }
        [NotMapped]
        public String SortType { get; set; }
        [NotMapped]
        public String SortValue { get; set; }

        //[NotMapped]
        //public string SortType { get; set; }

        public IEnumerable<BTB_GoodsTypeDto> GoodsTypeDto { get; set; }
        public IEnumerable<BTB_Goods> BTB_GoodsDTO { get; set; }
        [NotMapped]
        public IEnumerable<BTB_NewProducts> BTB_NewProduct { get; set; }

    }

    public class GetDataSearchDTO {
        public bool? IsHot { get; set; }

        public bool? Preferential { get; set; }

        public bool? IsSpecial { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 二级分类
        /// </summary>
        public string RootTypeTwo { get; set; }

        public int? Startprice { get; set; }

        public int? Endprice { get; set; }

        /// <summary>
        /// 是否积分商品
        /// </summary>
        public bool? IsPointGood { get; set; } = false;

    }


}
